package com.baizhi.client;

import com.baizhi.entity.Product;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient("product-module")
public interface FeignProductClient {
    @GetMapping("/selectOne/{id}")
    public String selectOne(@PathVariable("id") int id);
    @GetMapping("/selectOne2/{id}")
    public Product selectOne2(@PathVariable("id") int id);
}
